export interface IJournal {
  id: number;
  m_id: number;
  u_id: number;
  content: string;
  title?: string;
  createdAt: string;
  updatedAt: string;
  photos: IPhotos[];
  is_open: boolean;
}

export interface IJournalExt extends IJournal {
  marker_poi: {
    name: string;
  };
}

export interface IPhotos {
  url: string;
  index: number;
  min: string;
}

export enum IUploadImgStatus {
  UPLOAD = "uploading",
  SUCCESS = "success",
}

export interface IUploadImg extends IPhotos {
  message?: string;
  name?: string;
  status?: IUploadImgStatus;
  thumb?: string;
  type?: "image";
}
